﻿using System;
using SqlSugar;

namespace WomanMotion.WebApi.Model.Entitys
{
    /// <summary>
    /// 比赛表
    /// </summary>
	public class Match: BaseEmpty
	{
        /// <summary>
        /// 分类ID
        /// </summary>
        public long Classid { get; set; }
        /// <summary>
        ///比赛分类对象
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(Classid))]
        public Classify? Classify { get; set; } //不能赋值只能是null

        /// <summary>
        /// 关联赛程Id
        /// </summary>
        public long Scheduleid { get; set; }
        /// <summary>
        ///关联赛程对象
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(Scheduleid))]
        public Schedule? Schedule { get; set; } //不能赋值只能是null

        /// <summary>
        /// 比赛时间
        /// </summary>
        public DateTime Starttime { get; set; }

        /// <summary>
        /// 队伍一ID
        /// </summary>
        public long Teamaid { get; set; }
        /// <summary>
        ///队伍一对象
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(Teamaid))]
        public Team? Teama { get; set; } //不能赋值只能是null

        /// <summary>
        /// 队伍二ID
        /// </summary>
        public long Teambid { get; set; }
        /// <summary>
        ///队伍二对象
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(Teambid))]
        public Team? Teamb { get; set; } //不能赋值只能是null

        /// <summary>
        /// 队伍一比分
        /// </summary>
        public int Teamascore { get; set; }

        /// <summary>
        /// 队伍二比分
        /// </summary>
        public int Teambscore { get; set; }

        /// <summary>
        /// 观看平台ID
        /// </summary>
        public long Watchid { get; set; }
        /// <summary>
        ///观看平台对象
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(Watchid))]
        public Watch? Watch { get; set; } //不能赋值只能是null

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}

